<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="author" content="lushu">
		<title>消费撤销确认</title>
		<script type="text/javascript" src="../script/common.js" language="JavaScript"></script>
		<script type="text/javascript" language="JavaScript">
			var Page;					//数据表格对象
			function initPageElements(){
				Page.sql = "confirm_trade_list";
				Eui.initDateInput("businessDateTd","业务日期",Page.form.id,"businessDate","_pastDate",false);
				Page.selection.tradeType = {list:Common.getSubsetItems("epstrade_type",[EpsTradeType.CARD,
																						EpsTradeType.BANK,
																						EpsTradeType.CASH]),nullLabel:"全     部"};
				Page.selection.accountType = {list:Clear.AccountType.consume()};
				Page.operation = ListPage.Operations.PpsTrade;
			}

			function confirmPpsTrade(){
				var ids = Page.currentID;
				try{
					DWR.syncCall("tradeService.confirmConsumeCancelTrades",ids)
						showInformation("交易确认成功");
						switchPage('listView')
						ListPage.showListTable();
				}catch(e){
					showError(e.description)
				}
			}
			
		</script>
	</head>
	<body onload="Clear.List.init()">
		<div class="nav"><div id="nav">&nbsp;</div></div>
	
		<div id="listView">
			<div class="searchForm">
				<form id="searchForm" name="searchForm">
					<table cellSpacing="0" cellPadding="4" width="100%" border="0">
						<tr>
							<td class="label5" id="acquirer"></td>
							<td class="label5" id="businessDateTd"></td>
							<td class="label5">
								<label>帐户类型</label>
								<select name="accountType" onchange="ListPage.changeAccountCode(this)"><option></select>
							</td>
							<td></td>
						</tr>
						<tr>
							<td  class="label5">
								<label>交易类型</label>
								<select name="tradeType"><option></option></select>
							</td>
							<td class="label5" id="minAmountTd"></td>
							<td class="label5" id="maxAmountTd"></td>
							<td><button onclick="ListPage.showListTable()">查 询</button></td>
						</tr>
					</table>
				</form>
			</div>
			<div id="datalist"></div>
		</div>
		
		<div id="detailView" style="display:none;">
			<div class="form" id="printArea">
				<div class="formTitle">消费撤销交易明细</div>
				<div id="mainTrade"></div>
			</div>
			<p>
				<button onclick="confirmPpsTrade()">确 认</button>
				<button onclick="switchPage('listView')">返 回</button>
			</p>
		</div>
	</body>
</html>